package com.example.spark.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 主要业务
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Affair {
    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    @TableField("affair_name")
    private String name;
    private String photo;
    @TableField("affair_description")
    private String description;
}
